export default [
  // 授权管理
  {
    path: '/',
    name: 'Auth',
    component: 'Layout',
    hidden: false,
    redirect: '/auth',
    meta: {
      menuName: 'AuthManage',
      icon: 'iconauthorise'
    },
    children: [{
      path: 'auth',
      name: 'AuthManage',
      component: '/auth',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'AuthManage',
        icon: 'iconauthorise',
        url: '',
        pagePermission: []
      }
    },
    {
      path: 'editAuth',
      name: 'EditAuth',
      component: '/editAuth',
      hidden: true,
      meta: {
        keepAlive: false,
        menuName: 'EditAuth',
        icon: '',
        url: '',
        pagePermission: []
      }
    }
    ]
  },
  // 代理商等级
  {
    path: '/',
    name: 'AgentLevel',
    component: 'Layout',
    hidden: false,
    redirect: '/agentLevel',
    meta: {
      menuName: 'AgentLevelManage',
      icon: 'iconAgentLevel'
    },
    children: [{
      path: 'agentLevel',
      name: 'AgentLevelManage',
      component: '/agentLevel',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'AgentLevelManage',
        icon: 'iconAgentLevel',
        url: '',
        pagePermission: []
      }
    },
    {
      path: 'editAgentLevel',
      name: 'EditAgentLevel',
      component: '/editAgentLevel',
      hidden: true,
      meta: {
        keepAlive: false,
        menuName: 'EditAgentLevel',
        icon: '',
        url: '',
        pagePermission: []
      }
    }
    ]
  },
  // 代理商授权
  {
    path: '/',
    name: 'AgentAuth',
    component: 'Layout',
    hidden: false,
    redirect: '/agentAuth',
    meta: {
      menuName: 'AgentAuthManage',
      icon: 'iconagentauth'
    },
    children: [{
      path: 'agentAuth',
      name: 'AgentAuthManage',
      component: '/agentAuth',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'AgentAuthManage',
        icon: 'iconagentauth',
        url: '',
        pagePermission: []
      }
    },
    {
      path: 'editAgentAuth',
      name: 'EditAgentAuth',
      component: '/editAgentAuth',
      hidden: true,
      meta: {
        keepAlive: false,
        menuName: 'EditAgentAuth',
        icon: '',
        url: '',
        pagePermission: []
      }
    }
    ]
  },
  // 版权管理
  {
    path: '/copyright',
    name: 'Copyright',
    component: 'Layout',
    redirect: '/copyright/index',
    hidden: false,
    meta: {
      menuName: 'CopyrightManage',
      icon: 'iconbanquan'
    },
    children: [{
      path: 'index',
      name: 'CopyrightIndex',
      component: '/copyright',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'CopyrightManage',
        icon: 'iconbanquan',
        url: '',
        pagePermission: []
      }
    },
    {
      path: 'edit',
      name: 'EditCopyright',
      component: '/editCopyright',
      hidden: true,
      meta: {
        keepAlive: false,
        menuName: 'EditCopyright',
        icon: '',
        url: '',
        pagePermission: []
      }
    }
    ]
  },
  // 上传配置
  {
    path: '/',
    name: 'Upload',
    component: 'Layout',
    hidden: false,
    redirect: '/upload',
    meta: {
      menuName: 'UploadManage',
      icon: 'iconuploadset'
    },
    children: [{
      path: 'upload',
      name: 'UploadManage',
      component: '/upload',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'UploadManage',
        icon: 'iconuploadset',
        url: '',
        pagePermission: []
      }
    },
    {
      path: 'editUpload',
      name: 'EditUpload',
      component: '/editUpload',
      hidden: true,
      meta: {
        keepAlive: false,
        menuName: 'EditUpload',
        icon: '',
        url: '',
        pagePermission: []
      }
    }
    ]
  },

  // 默认设置
  {
    path: '/default',
    name: 'Default',
    component: 'Layout',
    redirect: '/default/setting',
    hidden: false,
    meta: {
      menuName: 'DefaultSetting',
      icon: 'iconshezhi'
    },
    children: [{
      path: 'setting',
      name: 'DefaultSetting',
      component: '/default',
      hidden: false,
      meta: {
        keepAlive: false,
        menuName: 'DefaultSetting',
        icon: 'iconshezhi',
        url: '',
        pagePermission: []
      }
    }]
  },

  // 聊天记录
  {
    path: '/chat',
    name: 'Chat',
    component: 'Layout',
    redirect: '/chat/record',
    hidden: false,
    meta: {
      menuName: 'ChatRecord',
      icon: 'iconliaotian'
    },
    children: [{
      path: 'record',
      name: 'ChatRecord',
      component: '/chatRecord',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'ChatRecord',
        icon: 'iconliaotian',
        url: '',
        pagePermission: []
      }
    }]
  },

  // 获客文章
  {
    path: '/article',
    name: 'Article',
    component: 'Layout',
    redirect: '/article/index',
    hidden: false,
    meta: {
      menuName: 'Article',
      icon: 'iconwenzhangguanli'
    },
    children: [{
      path: 'index',
      name: 'ArticleIndex',
      component: '/article',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Article',
        icon: 'iconwenzhangguanli',
        url: '',
        pagePermission: []
      }
    }]
  },

  // 活动报名
  {
    path: '/activity',
    name: 'Activity',
    component: 'Layout',
    redirect: '/activity/index',
    hidden: false,
    meta: {
      menuName: 'Activity',
      icon: 'iconhuodongyingxiao'
    },
    children: [{
      path: 'index',
      name: 'ActivityIndex',
      component: '/activity',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Activity',
        icon: 'iconhuodongyingxiao',
        url: '',
        pagePermission: []
      }
    }]
  },

  // 房产插件
  {
    path: '/house',
    name: 'House',
    component: 'Layout',
    redirect: '/house/index',
    hidden: false,
    meta: {
      menuName: 'House',
      icon: 'iconfangchan01'
    },
    children: [{
      path: 'index',
      name: 'HouseIndex',
      component: '/house',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'House',
        icon: 'iconfangchan01',
        url: '',
        pagePermission: []
      }
    }]
  },

  // 百度小程序
  {
    path: '/baidu',
    name: 'Baidu',
    component: 'Layout',
    redirect: '/baidu/index',
    hidden: false,
    meta: {
      menuName: 'Baidu',
      icon: 'iconicon_baidulogo'
    },
    children: [{
      path: 'index',
      name: 'BaiduIndex',
      component: '/baidu',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Baidu',
        icon: 'iconicon_baidulogo',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 引流系统
  {
    path: '/closure',
    name: 'Closure',
    component: 'Layout',
    redirect: '/closure/index',
    hidden: false,
    meta: {
      menuName: 'Closure',
      icon: 'icon_closure'
    },
    children: [{
      path: 'index',
      name: 'ClosureIndex',
      component: '/closure',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Closure',
        icon: 'icon_closure',
        url: '',
        pagePermission: []
      }
    }]
  },

  // 带客有礼
  {
    path: '/passenger',
    name: 'Passenger',
    component: 'Layout',
    redirect: '/passenger/index',
    hidden: false,
    meta: {
      menuName: 'Passenger',
      icon: 'icon_passenger'
    },
    children: [{
      path: 'index',
      name: 'PassengerIndex',
      component: '/passenger',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Passenger',
        icon: 'icon_passenger',
        url: '',
        pagePermission: []
      }
    }]
  },

  // 新客福包
  {
    path: '/cash',
    name: 'Cash',
    component: 'Layout',
    redirect: '/cash/index',
    hidden: false,
    meta: {
      menuName: 'Cash',
      icon: 'iconxinkefuli'
    },
    children: [{
      path: 'index',
      name: 'CashIndex',
      component: '/cash',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Cash',
        icon: 'iconxinkefuli',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 满减返佣
  {
    path: '/reduction',
    name: 'Reduction',
    component: 'Layout',
    redirect: '/reduction/index',
    hidden: false,
    meta: {
      menuName: 'Reduction',
      icon: 'iconreduction'
    },
    children: [{
      path: 'index',
      name: 'ReductionIndex',
      component: '/reduction',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Reduction',
        icon: 'iconreduction',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 直播
  {
    path: '/live',
    name: 'Live',
    component: 'Layout',
    redirect: '/live/index',
    hidden: false,
    meta: {
      menuName: 'Live',
      icon: 'iconlive'
    },
    children: [{
      path: 'index',
      name: 'LiveIndex',
      component: '/live',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Live',
        icon: 'iconlive',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 短视频
  {
    path: '/shortvideo',
    name: 'Shortvideo',
    component: 'Layout',
    redirect: '/shortvideo/index',
    hidden: false,
    meta: {
      menuName: 'Shortvideo',
      icon: 'iconShortVideo'
    },
    children: [{
      path: 'index',
      name: 'ShortvideoIndex',
      component: '/shortvideo',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Shortvideo',
        icon: 'iconShortVideo',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 等级会员
  {
    path: '/vip',
    name: 'Member',
    component: 'Layout',
    redirect: '/member/index',
    hidden: false,
    meta: {
      menuName: 'Member',
      icon: 'iconreduction'
    },
    children: [{
      path: 'index',
      name: 'MemberIndex',
      component: '/member',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Member',
        icon: 'iconMember',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 付费课程
  {
    path: '/payclass',
    name: 'Payclass',
    component: 'Layout',
    redirect: '/payclass/index',
    hidden: false,
    meta: {
      menuName: 'Payclass',
      icon: 'iconcourse'
    },
    children: [{
      path: 'index',
      name: 'PayclassIndex',
      component: '/payclass',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Payclass',
        icon: 'iconcourse',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 好友砍价
  {
    path: '/bargain',
    name: 'Bargain',
    component: 'Layout',
    redirect: '/bargain/index',
    hidden: false,
    meta: {
      menuName: 'Bargain',
      icon: 'iconkanjiajilu'
    },
    children: [{
      path: 'index',
      name: 'BargainIndex',
      component: '/bargain',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Bargain',
        icon: 'iconkanjiajilu',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 问卷调查
  {
    path: '/questionnaire',
    name: 'Questionnaire',
    component: 'Layout',
    redirect: '/questionnaire/index',
    hidden: false,
    meta: {
      menuName: 'Questionnaire',
      icon: 'iconrenwu'
    },
    children: [{
      path: 'index',
      name: 'QuestionnaireIndex',
      component: '/questionnaire',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Questionnaire',
        icon: 'iconrenwu',
        url: '',
        pagePermission: []
      }
    }]
  },
  
  // 好友代付
  {
    path: '/helppay',
    name: 'HelpPay',
    component: 'Layout',
    redirect: '/helppay/index',
    hidden: false,
    meta: {
      menuName: 'HelpPay',
      icon: 'iconweixinzhifu1'
    },
    children: [{
      path: 'index',
      name: 'HelpPayIndex',
      component: '/helppay',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'HelpPay',
        icon: 'iconweixinzhifu1',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 抖音小程序
  {
    path: '/douyin',
    name: 'Douyin',
    component: 'Layout',
    redirect: '/douyin/index',
    hidden: false,
    meta: {
      menuName: 'Douyin',
      icon: 'icon-douyin'
    },
    children: [{
      path: 'index',
      name: 'DouyinIndex',
      component: '/douyin',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Douyin',
        icon: 'icon-douyin',
        url: '',
        pagePermission: []
      }
    }]
  }, 
  // 场地预约
  {
    path: '/banquet',
    name: 'BanquetIndex',
    component: 'Layout',
    redirect: '/banquet/index',
    hidden: false,
    meta: {
      menuName: 'Banquet',
      icon: 'iconyuyue'
    },
    children: [{
      path: 'index',
      name: 'BanquetIndex',
      component: '/banquet',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Banquet',
        icon: 'iconyuyue',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 积分商品
  {
    path: '/integral',
    name: 'IntegralIndex',
    component: 'Layout',
    redirect: '/integral/index',
    hidden: false,
    meta: {
      menuName: 'Integral',
      icon: 'iconjifen'
    },
    children: [{
      path: 'index',
      name: 'IntegralIndex',
      component: '/integral',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Integral',
        icon: 'iconjifen',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 公司/部门
  {
    path: '/company',
    name: 'Company',
    component: 'Layout',
    redirect: '/company/index',
    hidden: false,
    meta: {
      menuName: 'Company',
      icon: 'icongongsikehuguanli'
    },
    children: [{
      path: 'index',
      name: 'CompanyIndex',
      component: '/company',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'Company',
        icon: 'icongongsikehuguanli',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 账户管理
  {
    path: '/account',
    name: 'Account',
    component: 'Layout',
    redirect: '/account/index',
    hidden: false,
    meta: {
      menuName: 'Account',
      icon: ''
    },
    children: [{
      path: 'index',
      name: 'AccountIndex',
      component: '/account',
      hidden: false,
      meta: {
        keepAlive: true,
        menuName: 'AccountManage',
        icon: 'iconshezhi',
        url: '',
        pagePermission: []
      }
    }, {
      path: 'edit',
      name: 'EditAccount',
      component: '/editAccount',
      hidden: true,
      meta: {
        keepAlive: false,
        menuName: 'EditAccount',
        icon: 'iconshezhi',
        url: '',
        pagePermission: []
      }
    }]
  },
  // 站点绑定
  {
    path: '/site',
    name: 'Site',
    component: 'Layout',
    redirect: '/account/index',
    hidden: false,
    meta: {
      menuName: 'Site',
      icon: 'iconqiu'
    },
    children: [{
      path: 'index',
      name: 'SiteBind',
      component: '/site',
      hidden: false,
      meta: {
        menuName: 'SiteBind',
        icon: 'iconqiu',
        pagePermission: []
      }
    }]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]
